//
//  HLLiveOptionRequest.m
//  YueYue
//
//  Created by hulu001 on 2024/3/13.
//

#import "HLLiveOptionRequest.h"

@implementation HLLiveOptionRequest
{
    NSString *_room;
    HLLiveOptionType _type;
}

- (id)initWithRoom:(NSString *)room type:(HLLiveOptionType)type
{
    self = [super init];
    
    if (self) {
        _room = room;
        _type = type;
    }
    
    return self;
}

- (NSString *)requestUrl
{
    switch (_type) {
        case HLLiveOptionTypeJoin:
            return @"/join/live/room";
            break;
        case HLLiveOptionTypeLeave:
            return @"/leave/live/room";
            break;
        case HLLiveOptionTypeThumb:
            return @"/live/room/thumb/up";
            break;
        case HLLiveOptionTypeThumbCount:
            return @"/like_counts";
            break;
    }
}

- (YTKRequestMethod)requestMethod
{
    return YTKRequestMethodGET;
}

- (id)requestArgument
{
    return @{@"liveRoomCode":_room};
}

@end
